<?php
// admin users list page
require_once 'view/adm/users/registered.index.php';
require_once 'control/adm/users/registered/form.php';

class RegisteredUsersIndexPage extends PageController {

	var $form;

    function RegisteredUsersIndexPage() {
        parent::PageController();
        $this->form =& new RegisteredUsersFormController();
        $this->addChild('UserForm', $this->form);
        $this->setDefaultChild('UserForm');

        //$listview =& new AdminUsersListView('/adm/users/administrators.index.html');
        $this->setDefaultView(new Handle('RegisteredUsersListView', array('/adm/users/registered.index.html')));
        //$listview =& new AdminUsersListView('/adm/users/test.html');
        //$this->addView('index', $listview);

        //$this->setDefaultView('index');

        $this->addView('success', WACT_DEFAULT_VIEW);
        $this->addView('notfound', WACT_DEFAULT_VIEW);
        $this->addView('delete', new Handle('RedirectView', array('/delete')));
        $this->addView('deactivate', new Handle('RedirectView', array('/deactivate')));
        $this->addView('activate', new Handle('RedirectView', array('/activate')));

    }
}

?>